<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>跳跳小游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="game-container">
        <h1>跳跳小游戏</h1>
        <select id="difficulty">
            <option value="easy">简单</option>
            <option value="medium" selected>中等</option>
            <option value="hard">困难</option>
        </select>
        <div class="game-info">
            <p>得分: <span id="score">0</span></p>
            <p>时间: <span id="time">30</span> 秒</p>
            <p>目标分数: <span id="targetScore">10</span></p>
        </div>
        <canvas id="gameCanvas" width="800" height="400"></canvas>
        <div id="startButtonContainer"></div>
        <div id="touchControls"></div>
    </div>
    <div class="game-rules">
        <h3>游戏规则</h3>
        <p>1. 使用方向键左右移动角色</p>
        <p>2. 使用上键跳跃</p>
        <p>3. 在规定时间内收集足够的金币</p>
        <p>4. 不同难度有不同的时间限制和目标分数</p>
    </div>
    <script src="script.js"></script>
</body>
</html>